package com.example.springboot.config.prop.configurationproperties.controller;

import com.example.springboot.config.prop.configurationproperties.DataBaseConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangsh
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Des: ${todo}
 * @date 2018/6/6 0006下午 2:58
 */
@RestController
public class PropController {

    @Autowired
    DataBaseConfig dataBaseConfig;

    @RequestMapping("getPropList")
    public String getPropList() {
        return dataBaseConfig.getName();
    }
}
